//
//  DSYCarouselModel.m
//  BLDMusic
//
//  Created by dllo on 16/3/17.
//  Copyright © 2016年 白云杰. All rights reserved.
//

#import "DSYCarouselModel.h"
#import "DSYSongModel.h"

@implementation DSYCarouselModel

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([@"songs" isEqualToString:key]) {
        self.songs = [DSYSongModel modelHandleWithArray:value];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    NSLog(@"%@", key);
    
    if ([@"id" isEqualToString:key]) {
        self.dataid = value;
    }
    if ([@"action" isEqualToString:key]) {
        self.action_type = value[@"type"];
        self.action_value = value[@"value"];
    }
    
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
